package com.ys.entity.hr;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TWL_StockInDetail", catalog="Id")
public class TwlStockInDetail extends BaseEntity<TwlStockInDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BidStockIn", nameJava="bidStockIn", typeDataBase="varchar")
	private String bidStockIn;
	@YsField(nameDataBase="MaterialCode", nameJava="materialCode", typeDataBase="varchar")
	private String materialCode;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="Price", nameJava="price", typeDataBase="decimal")
	private BigDecimal price;
	@YsField(nameDataBase="Img", nameJava="img", typeDataBase="varchar")
	private String img;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TwlStockInDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBidStockIn() {
		return bidStockIn;
	}
	public TwlStockInDetail setBidStockIn(String bidStockIn) {
		this.bidStockIn = bidStockIn;
		return this;
	}
	public String getMaterialCode() {
		return materialCode;
	}
	public TwlStockInDetail setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TwlStockInDetail setNum(Integer num) {
		this.num = num;
		return this;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public TwlStockInDetail setPrice(BigDecimal price) {
		this.price = price;
		return this;
	}
	public String getImg() {
		return img;
	}
	public TwlStockInDetail setImg(String img) {
		this.img = img;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TwlStockInDetail setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TwlStockInDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TwlStockInDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TwlStockInDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TwlStockInDetail twlStockInDetail(
		String bidStockIn,
		String materialCode,
		Integer num,
		BigDecimal price,
		String img,
		String remark,
		Integer status
			) {
		TwlStockInDetail entity = new TwlStockInDetail();
		entity.setBidStockIn(bidStockIn);
		entity.setMaterialCode(materialCode);
		entity.setNum(num);
		entity.setPrice(price);
		entity.setImg(img);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}